package com.fresh.dao;

import java.util.List;

import com.fresh.entity.UserPermissionEntity;

public interface UserPermissionDao extends BaseDao<UserPermissionEntity> {

	/**  
	* @Title: queryUser  
	* @Description: 查询用户权限 
	* @param entity
	* @return List<UserPermissionEntity>  
	* @throws  
	*/ 
	public List<UserPermissionEntity> queryUser(UserPermissionEntity entity);
	
	/**
	 * 删除用户的所有权限
	 */
	public  Integer deleteUserPermissio(String userId);
	
	
	/**
	 * @param 根据用户编号获取权限数据
	 * @param gmc
	 * @param  
	 * @return
	 */
	public List<UserPermissionEntity> getUserPermissionByUserId(String userId);
	
}
